#ifndef TESTRECVSEND_H
#define TESTRECVSEND_H

#include <QByteArray>
#include <QJsonDocument>
#include <memory>
#include "socket/sockclient.h"
#include "socket_play/networkgame.h"
#include <QJsonObject>
class TestRecvSend
{
public:
    TestRecvSend();
    QByteArray getType(QByteArray bytearray);
    int getInfo( shared_ptr<SockClient> &client);
    void front_test(NetworkGame &game,shared_ptr<SockClient> &client);
    void back_test(NetworkGame &game,shared_ptr<SockClient> &client);
    void spy_times(int seconds);
    void task();
    void test();

    atomic<long long> times;
    volatile bool tag=true;
};

#endif // TESTRECVSEND_H
